package com.lonely.common.exception;

import com.lonely.common.core.domain.api.IResultCode;
import lombok.AllArgsConstructor;

/**
 * 用于自定义或者传递异常码
 */
@AllArgsConstructor
public class ExceptionResultCode implements IResultCode {

    private int code;
    private String message;

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public int getCode() {
        return this.code;
    }
}
